diff options
| author | Michael Williamson <mike@zwobble.org> | 2024-01-28 17:24:46 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2024-01-28 17:29:35 +0000 |
| commit | 9b7919f545f71b60d769ef5a57b240c9dc770a3c (patch) | |
| tree | f01034aa6ea6018dda8b62001c87193613ca70b2 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatInstructionsTests]/[method:canSerializeMemoryFill(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | |
| parent | 5582721f6069ce9a0b36d19f36ef51f62acb5adc (diff) | |
Add memory.fill to Wasm
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatInstructionsTests]/[method:canSerializeMemoryFill(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
1 files changed, 29 insertions, 0 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatInstructionsTests]/[method:canSerializeMemoryFill(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatInstructionsTests]/[method:canSerializeMemoryFill(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..e12f7caa --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatInstructionsTests]/[method:canSerializeMemoryFill(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,29 @@ + +module.wasm: file format wasm 0x1 + +Section Details: + +Type[1]: + - type[0] () -> nil +Function[1]: + - func[0] sig=0 <f> +Memory[1]: + - memory[0] pages: initial=0 +Code[1]: + - func[0] size=14 <f> +Custom: + - name: "linking" + - symbol table [count=1] + - 0: F <f> func=0 [ binding=global vis=default ] +Custom: + - name: "name" + - func[0] <f> + +Code Disassembly: + +00002f func[0] <f>: + 000030: 41 e4 00 | i32.const 100 + 000033: 41 e5 00 | i32.const 101 + 000036: 41 e6 00 | i32.const 102 + 000039: fc 0b 00 | memory.fill 0 + 00003c: 0b | end
\ No newline at end of file |
